<?php

class Supplier extends CActiveRecord
{

 /*
   * Returns the static model of the specified AR class.
   * @return CActiveRecord the static model class
   */
  public static function model($className=__CLASS__)
  {
    return parent::model($className);
  }

public function relations()
{

return array( 'HOUSE_STYLES'=>array(self::HAS_MANY, 'HOUSE_STYLES', 'supplier_id','together'=>false));

}
  /**
   * @return string the associated database table name
   */
  public function tableName()
  {
    return 'SUPPLIER';
  }
    
  public function primaryKey(){
    return 'id';
  } 
  
  }
  ?>